import request from '@/utils/request';
// 登录
export const login = (params = {}) => { return request.post('/auth/login', params, { isToken: false, repeatSubmit: false }) }
// 获取验证码
export const getCodeImg = () => { return request.get('/code', { headers: { isToken: false } }) }
// 获取用户信息
export const getInfo = () => { return request.get('/system/user/getInfo') }
// 退出登录
export const logout = (params = {}) => { return request.delete('/auth/logout', params) }
